Exchange of longitudinal spin polarization by dipolar cross relaxation between nonequivalent spins results in a modulation of the stimulated echo signal on increasing the encoding/decoding delays and in a multiexponential decap on increasing the diffusion time. These artifacts are suppressed by 180 degrees pulses inserted in the middle of the gradient encoding/decoding periods. The efficiency of the gradient encoding is preserved if bipolar gradient pulses are used instead of monopolar pulses. The behavior of the different pulse sequences is demonstrated by F-19 PGSE NMR experiments in a lyotropic liquid crystal in both isotropic micellar and oriented nematic phases.