fix bug of homedir