fix save diary