Fixed issue with array index out of bounds exception when progress
reaches last overall file.