- fixed several bugs that caused search to fail