fixed output of domain when text is set