fix dict usage