resetting currentWaveIndex when a child wave is deleted