Fix creating dict