Fix undefined host var