Fix bug for `form_id` check