height computation fixes