Fix a bug in listVm logic to use revokedIds and grantedIds.