Fix multiple hosts problem.