Made the permissionSet a PermissionSet object instead of an EntitySet object.