Fixed a bug where limits were not properly removed after module dactivation