fixed agent issue with multi-host