Fix milliseconds in delay