fix redis mode script