fixed submit bug