fixed some warning in native code