bugfix for empty nodes.