trying to fix bugs with bad browser detection