Fix set_host_array signature