Scene transitions finally works correctly