fixed jtype bug
fixed return type of NewGlobalRef