fixed waveform drawing problems on linux