fix NodePrinter to stop it outputting unwanted characters