Are you using /window -z in any of your scripts to modify the order of non-custom windows?