Bug fix in assignments when there are no children.