TimeSeries bugfix

fixed bugs #717, #732