Fixed a bad var ref.