fixed leaving onsubmit