Fix minor bug in connected_to_site() helper