Minor fixes in submit script