fix problem counting height sub containers