fix mdb read