fix for old sessions