Error with lost node tail fixed in convertToText