1.Fixed exceptions when transitions are not finished; 2.Added logic to allow wait for transitions or allow overlaping transitions;