fix some bugs on dictionaries creation