fix redis connection exception