fix search bug. closes #78