ReportManager: fixed query and exceptions