fixed bug in which program would respond incorrectly when transitions from async patterns were longer than the state of the origin pattern.