fix checking custom field value in hook 2