bug fix

start each wave at zero point