Fix prompt to cancel showing even when not canceling.