fixed bug in _handleLabels input group condition