fix the report generation issue