foreach fix in removePermission