Bug fix in transition logic

The common ancestor was being exited…