fix redis hard code
some bugs fix