Fix case for 3+ matching functions