Fixing a bug where missing milliseconds throw an exception