Bug fix in submitForm()

Fixes #749