fix missing home dir issue