Fixed compatibility issue with old session data