-fixed issue with script not processesing the entire time range