fixed native code issue