clear dictionary, fix duplicate words problem (hopefully)