Fix to add host entry.