fix firefox in Mac and Windows

fix the splitting submit problem found in firefox in Mac and Windows