Fixed the report generation.