final height calculation fix