Fix bug related to redis connections.