fix a bug that caz imx leak