browser detection fix