fix a data saving problem.