Fixed browser ref before assignment fix.