fix for a possible problem with node attributes