Fixed update record bug.