fixed typo in JNI code