Corrected newAltitude global leak bug