Fix issue related to linq to SQL and batch report.