fix unloading finally