fix erasing