Added assert for no dummy nodes.