fixed bug in altitude graph logic