Fix repeating of wave