Fix bug where hosts are not correctly processed by confirmation dialog