fix waveform margin