Fix delete tag bug