fixed a file truncate bug