fixed bug with custom field