fix error in native lib