fix query for one report type