fixed report generation problems