fix save session