fix pattern of duration