host flag bug fixed