fixed dynamicEdges problem