correct handling of disappearing dependencies