fix issue: listHosts with hahost throws exception