Fix cookie lookup