Fix bug with calling module_enable