Fixed bug with form submition