fix contact sync crash bug