fix ioapi_mem