Clean up of permissions