bugfix: Use correct jni method to advance frame.