[#8356] avoid dictionary changed size during iteration
2 files changed