fix bug of record