Had an error in the visitGroupComponent method were it would call the
accept method of the same group rather than the children.