fix the bug that redis never used actually