Fix error when retrieve contact list from local storage