https://github.com/ThuCommix/Sharpex2D/issues/8

Fixed InvalidOperationException if the enumeration has changed.