Fix #2 by adding shouldIncrementChainingCount to prevent invocation of duplicated transition handlers.