Fixed the view session bug