correct bug autosubmit when Js load