merge and erase replaced to ignore offset and size, so as to sovle memory leak problem