fix a bug of cxfree support