fixes auto height issue