fix deleting tags