Fixed a bug in CPortalWrapper where I was adding to the result IDs the NID of the object.