Bug fix, when first create the code session, the code session id would not be set