Fix pattern-match.