Fix nano-to-milliseconds conversion.