fixing a dict assumption