fix for save session