Fixes error where download would not recover if file did not contain data for an integer number of months.