Small changes and fixes
Fixed error in Session init