Fix minor thinko in ifcansearch implementation