Fixed errors in the jninativemethod.