Bugfix in updating transition.