Dropdown inside privileges don't update after deleting a collection/function

After deleting Collections/Functions/Indexes they are still available in the dropdowns in the priviligies section. I need to log out and log in again that the changes get applied there.

@gregor Thanks for reporting this bug, and I have raised a ticket to address this.