Fix hook issues of form submission.