fixed bug in search query for new contacts