Fixed crash causing bugs during reporting.