fixed the redis connection