bugfix in temporal resampling