bug in _applyAhrefToSegments (className)