fix iterator remove method