fix 224: make sure contexts are initialized with a valid session