fix mem read error