Fixed buga in LibrarySync