Stop reloadModules crashing