Fixed JNI bugs in stripper