Fixed bug creating ClientSession object