Fixed bug in host construction