Fix millisecond conversion