Bugfix in Submit script