Fixes problems with form submitting with bean form