It's just the bridge pathfinding problem. It actually helps when the enemy routs like that, because you get to kill them all when they flee through you instead of having to cross the bridge yourself to finish them off.