small module loading/unloading bug