fixed a bug where by localhost was included in the list of hosts