fix the bug of delete tag