fixed the bug that uses the wrong ID as a host ID by mistake.