Fixed bug while iter over dict