Solved issue of dict. rewriting