fixed query in contacts import