android: fix JNI reference error