The wall-detection for move flag is buggy, which is what I believe Yen used.
I can't think of an efficient way to script that but it's not a big deal as a random element makes them spread a bit. Then they reposition and surround you shortly after getting in attack range.