revert version beacause bug
correct the hpi.c which can't compile in the previous version