[bugfix] Fixed an issue in updating contact entry

This commit fixes an issue where updating a contact
entry might reset other entries.