fix transition animation