fix legal profiles not updated when a profile is deleted