Fix API search bug.