fix syncing old sessions bug