fix a const iterator