Fix millisecond dropping bug