Fix deleting contacts for #229