fix memread/write+base dico