Fixed the wrong host variable being used