fixing host, hostname deleting issue