diff --git a/src/NzbDrone.Core/Books/Services/RefreshBookService.cs b/src/NzbDrone.Core/Books/Services/RefreshBookService.cs index 1781adfac..d00963bf9 100644 --- a/src/NzbDrone.Core/Books/Services/RefreshBookService.cs +++ b/src/NzbDrone.Core/Books/Services/RefreshBookService.cs @@ -302,9 +302,8 @@ namespace NzbDrone.Core.Books return; } - var toMonitor = monitored.OrderByDescending(x => _mediaFileService.GetFilesByEdition(x.Id).Count) - .ThenByDescending(x => x.Ratings.Popularity) - .First(); + var toMonitor = monitored.OrderByDescending(x => x.Id > 0 ? _mediaFileService.GetFilesByEdition(x.Id).Count : 0) + .ThenByDescending(x => x.Ratings.Popularity).First(); monitored.ForEach(x => x.Monitored = false); toMonitor.Monitored = true;