Fix bug in redis storage