Fix for Firefox form bug