handle nativemethod error on update