Fixed bug where PortalModule wasn't loaded correctly