Fix dictionary creation.