Fixed setHostname in Router.