hack: bypass strange JNI error