ensure that boolean value is true for text nodes