fixed bugs in Submit operation