fixed report generation problems

fixed report generation problems