fixed bug in PortalCreator