fixed endless loop in layout subviews if the title is too long