Change ref to __ref.