Fixed bug with moving waves.