fix pattern match failure.Done.