support HasText case properly