Fixed record bug.