Make SwitchMode works when the module is not loaded
Merge pull request #2475 from ogail/module

Make SwitchMode works when the module is not loaded