Fixed error in submit