bug with search, fixed