fixed another bug in search