Fix some possible redis problems