Fix GetPermissions