fix redid error when using memory adapter