bug fix of height and title trim