reverted height calculation in pivot