fix flaw in altitude filter
for the commit history of this git project, see the history-master branch.