fixed redis query