Fix error with TimeSeries.java