Fixed a bug with transition selection