handling duplicate wave error