Fix connection issue and rename redis variable.