Fix for case 218: 'child-vertexes and parent-vertexes swapped'