fix regression on wholeword/perfectmatch, looks like nobody uses those...