Session creation fix