Fix misnamed var ref