Fixed browser detection