I'm not sure why this will not work:

(0-10 are appearance events so i didn't include them)
I've tried removing lines 18 and 19 but that doesn't help either.
Whenever the bot detects me, it starts to follow me, but after a very short time, it just randomly "looses" me even though it's 5 feet away from me and then the bot just stars wandering around for 5 seconds and then "finds" me again and then "looses" me and then its basically an infinite loop of it "finding and loosing" me. This is really annoying and I'm wondering why this is not working. The thing that puzzles me the most is: it's only at a certain point and that part of the build has no events anywhere on it. The ONLY thing with events in the build is the bot spawn.