Fix wrong method name getHostname to getHost