fix dict type for before 17