fixed an annoying bug. Search runs a tad slower still, but free of *most* bugs