Fixes editing permissions.
Fixes permission deletion.