fix build error in iterator