Fix redis lookup loop