Fixed problem with resetModulesWithDependency