fix transition end
Merge pull request #8774 from liuyl/transition

fix transition end