Bugfix for form submit