Fixed edge case bug in report.py