fixed restarting waves incrementing to next wave