Fixed stupid bug in timeseriesregistration