Correcting coordinates in the function getTimeSeries.