Fix bug re-submit form