fixed to "Use of each() on hash after insertion without resetting hash iterator results in undefined behavior" on 5.17.10

fixed to "Use of each() on hash after insertion without resetting hash iterator results in undefined behavior" on 5.17.10