Ok i'm currently changing the script. A mini-update should arrive in a few hours after a few tests on my side.
Thanks for your feedback.