fix redis connect problem.