Fixed some bugs in capitalization on searches.