fixed waveformproblem