fix milliseconds issue