Fix ocls/sdr pattern extraction