fixed bug in get_reports.py