Fix non-exhaustive match.