fix bug for tag.parse where name is empty