fixed redis access bug