Fixed this ugly warnings in the LibraryService class