fix bug: overwrite the file with report