Fixed a bug in the transition setting