fixed JNI