Fixing the get hosts part