Fixed typo bugs in erase