fix write-off bug
more test