fix access eror in dict