Fixed unnecessary session object