bug in search fixed