fixed bug about multiple frees the iter memory