fix error with hosts