fixed redis settings logic