Fixed a minor bug in Module#init method. Refactoring.