Bug fix: ambiguous intermediate nodes flattening solved.