AIWander Isn't Being Passed The Repeat Parameter
There is a missing parameter from AIWander. This is the repeat parameter and is listed after idle9 in the parameters list, this gets passed as a 0 by default if there are only 3 parameters passed but if a single idle parameter is listed it gets passed as 1. It can also be specified, but only if all 9 idle parameters are as well:
AIWander 500 2 0 0 0 0 0 0 0 0 0 0
This will make repeat be passed as 0 even though there are idles being specified. Although:
AIWander 500 2 0 0
Will pass repeat as 1 because at least one idle parameter is specified and the repeat parameter is not specified as 0.
Read more here: https://forum.openmw.org/viewtopic.php?f=6&t=1556&p=16231