waveform/waveform: fix typo in errNilFunction