fixing downsampling for the millisecond support