dict set comprehension bug fix