Avoiding flash when cancel transition.