Fix an error occur in recording.