[Macrocompiler] Fix problem "collection was modified"
[Macrocompiler] Fix problem "collection was modified"

X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic,X-Sharp/XSharpPublic