Fixed incorrect Legend delete call