fixed a syntax error where host was not defined