Small bug fix. Erase now works as intended.