Module reload fix

Fix to reload modules with _modules dictionary clear