If you are using onesync, please read the following: [How-to] Adapt your script to OneSync and fix your issues