A fix was added in either V4 or V5, I don't remember which. The wandering NPC will now use the same position switching as the party members if they are not hostile