Fixed a small bug associated with the wave moving elements.