fixing bug in listPermissions