Fix bug: write report