Bug Fixes in altitude calculations