Fixed multiple submit bug