Why dictionary creation doesn't work? :(