jni message saving plus fix insidious bug fix