bugfix on createTextNode