fix dictionary iterator