If I remove this line then the transition won't work. It's very strange.