Fix modulesPrototype refactoring