Fixed issue on jni