fix a reading records bug