Fixed odd portal creation bug.