conditionally shown fields are not showing as expected