fix write redis