fix query on Maintenance Report