fix form submit bug