fix thinko with generated match() functions