Fixed dict iteration