Fix max bug in shift method on numeric timeseries