Fix browser detection