fixed WAVE errors