Fix bug when cname.