fix record bug