Fix bug where file_count could be larger than the number of files on imdb