bug fix for outputting node sets