Fix bug in ModuleGenerator (no input ports)