Setting the ref only works for master request.