fixes a small bug in the elevation that calculates the wrong class