 		name: type: "string"
 		resolve: type: "bool"
 		cb: type: "function"
-	nativeRepo.reference name, resolve, cb
+	_priv.native.reference name, resolve, cb
 Repository.prototype.ref = Repository.prototype.reference
 Repository.prototype.remote = ->
 	_priv = getPrivate @

		cb()
Remote.prototype.fetch = ->
	_priv = getPrivate @
	throw new Error "Remote isn't connected." if not connected
	[progressCb, cb] = args
		progressCb: type: "function"
		cb: type: "function"

		for ref, oid of refs
			continue if ref is "HEAD"
			if oid is headOid
				headRef = @fetchSpec.transformTo ref
				immutable(@, {headRef}).set "headRef", "HEAD"
				break

