Fixed bug when checking whether heterogeneity was calculated for lung images