Fixed typo that caused wrong native method to be invoked