Fix onsubmit event.