custom field fix for checkbox fields