fix increment of native int