Fix typo
Fix detaching non-existant cid