fix a record bug