Fixed redis bug