fix WaveTable problem