Small fix for polysearch