Assuming you back up your contacts on your Google Account, visit Google Contacts, try to undo the changes you made.