fixed a segfault in the dictionary setup.