fix wrong variable being used for current host