I don't have idea, is "selectedContacts = {};" no longer needed?