fixes a problem with the timeseries not working correctly