Fix missing ) in add_host

Fixes #1980.