Fixing inexhaustive match.