fixed bug that prevented modules from reloading