fix #each iterator error