Fix the bug that App hanged when applying Transition second time.