Fix host type check