Changed removal of objects of the library model.