Fixed bug for custom field