fix dict use