imp dict bug fix