dictionary: fixed segfault