Fix issue in dict comprehensition from #14158