dict_sweep fix