another fix for the item height calculation