auto height fix bugs