Fixed DiscardChanges method in LibraryManager.