bugfix for 'host'

otherwise, it will break again at logging.warn() and leave a confusing error in the log.