fixed bug in report generator