Bug in search fixed