identified a bug in .resample.reb