Fix custom field error: text field value removed