Fixed performance issue when population density is near 1