Handle negative altitude (fix #535)