fixes to html type for custom field