Fix wrapper height calculation