Fixed infinite loop bug.

One of the hugChildren calls did not have the correct exitCondition passed to the method.