Correct the duration type.