fix bug with end rt cancellation