Fix timer cancellation issue for note playing