fix onsubmit