fixes a bug with Firefox and using websql