AI standing still during combat

I am noticing during combat against more than one person, the npc enemy sometimes acts weird and just stands there while the other is fighting or they just stop fighting in the middle of battle and stand there. It seems really awkward.

Noticed this too in the robber baron side quest - definitely needs improvement.