search working for two queries, drops 3rd