Fixes bug that would prematurely move the wave.