Bugfix: fix min&max computation in height metric