fixed bug in custom form field