Fixed the Errors of data recording,