FIXED: some bugs with updating contacts.