fix runtime err from ABI incompatibility