change the code of hei to fix log