Fixed more issues with reports.php