Fix redis related errors