bug fix set close iterator