fix the bug that hm cannot run on mac os yosemite