Fix for directly invoking report generation