fixed bug with iteritems