fix redis iteration.