Minor adjustment to contact query