Crowd following component choose strange paths

I have a crowd of 50 actors walking through a passage with quite a few obstacles on the way.

I’m testing its behavior with UCrowdFollowingComponent. Overall it works great as the agents are able to choose few alternative paths and do not get stuck alltogether in one place.

However, sometimes they act strange - when the passage is temporarily blocked, they retreat and start moving in the opposing direction. It seems that they choose path that leads to their origin (spawn point) and back to where they are.

I tried tuning configuration values of crowd manager but nothing seems to affect that behavior.

It seems like a bug to me. Is there anything I could do to prevent?

That’s the one going nuts (the brown path leads up to his spawn point and the back, here you can see beginning and end of the path):

And here an ok agent: