Fix where with redis adapter