fix redis check