Text node processing is broken