Fixes to tag deletion.