erasing buffer before resuming