Fix calculus of height.