fix save data bug