Fixing bug with too many time ranges throwing exceptions.