Fix bug where notes would never stop.