corrected problem with report generation