fixed bug for period session