Fixed bug in host calc