mem: revert reversed allocation