fixes #6255 errors when you delete a role