handling wave creation errors