bugfix for when there is only one wave