Bug fix: browser detection