Usually when you are Underleveled, The Max Repel won't take Effect because the Wild Pokemon outspeed it. What I suggest is to get a Fast or high leveled Pokemon on the First Slot to fix the issue. If this doesn't work, your Game is glitched because of your use of AR, or just a pure glitch.
-Mike Y(^_^)Y