Fix iterator on mercstance crash bug