Fixed bug with hang redis connection.