Fix major bug in browser check