fix redis variable leaks