fix error in submit