How do you get her to stop?
If she can't understand what you want, why you want it, and the benefit of the same from a simple explanation then there's not much you can do about it other than to constantly switch places with her and keep reminding her. Hopefully, eventually, it will become habit.
Also, they make those shock collars.....