fixed eraser bugs