fix bug when more than one collection occur in search result