fix submit bug