fixed report generation