Bug when calling 'ds.checkvar' sorted.