Text node fix
Added support for mixed nodes