Fix permissions update issue due to permission name non uniqueness