fixing Time rounding error