fixing time index rounding