Bugs in report generation fixed.