mread bugfix