fix preferred height calculation