Add text node check back in
Add in text node check