fixed weird form submitting bug