Fixes wave animation.