Fix bugs in WikiSearch