fix redis crash