bug fix for form submit on firefox