fix addresses and contact when editing address/contact type