fix bug when deleting all tags