fix for issue #1183
Merge pull request #1184 from TrustNik/several_submits_form

fix for issue #1183