fix content height calculation issue