Fixed missing break is case statements that caused wavemode to behave erratically.