Fix bug with reopening host.