fixed some typos/bugs in search