Fixed use of promises with when/transit in disappear