bug fix in eraser