Conditional fields are not executing correctly