fixed populationDensity calculation error