Fix bugs in native code notebook