Thank you so much! I did the same as well, but for some reason, the code snippet used to auto-deactivate gave me an Ajax error.
Anyways, Thank you for solving the issue.