We measured the first and third harmonic of the complex AC susceptibility in YBCO single crystals with different oxygen content. The amplitude of the AC field was varied in presence of an external DC field both applied parallel to the c axis of the crystals. We show evidence that deoxygenation leads to a reduction of bulk pinning strength and consequently to a stronger contribution of geometrical barriers.