Fixed sendWave