fixed host assignment error