fix error when host down