fixed typo in the foreach loop on the api call get_contacts