wrong parameters order in JNI - fixed