Fix session creation