fixed redis err detection