Fixed URL bug when submitting form