Fixed homedir error