fixed jni export name and bugs