The 'weird' walking is simply the script walking to a random close position next to the patches when it isn't close enough to the patches. Some of these occasions are indeed corners of the patches. This is wanted behavior on my end and I will, thus, not change this -- sorry!