fix xml loop repeats not triggering