fix record historybug