Fix pattern match.