fix error in creating new contacts