Fix erasing issue