fix erase call method.