fixed browser detection