bug fix waveform rendering