small fix in nameToText