fix downsampling interval overflow issue