fix issue with avgElevation