fix saving contact data