Fix issue with tag deletion.