Fixing bug with dead channels.
Taking shank channels into account in waveform extraction.