Fix use of improper element for height calculation