Fix determination of first host