Fixed add_to_contacts bug