fix type error with local_hostname