fixed a stupid typo that made the search algorithm much worse. should match ok again.