Fritz not following the hero properly

I don’t usually raid with Fritz, but I was trying some new stuff and this thing happens almost every time with that pal!

Look where my king is (red) and where Fritz is (blue)!!!


That’s the point of the base shown in the screenshot:


Fritz stops following the king at this part, and then just sits there shooting things and sliding back and forth, wasting the damage on the same place several times. This happens every single time in this kind of base.

And then when the king reaches this part (red), sometimes Fritz start following but from the opposite path!