Fixed deadlock in Session init