Bug fix in external transitions

Did not exit from the node below the common ancestor, but from the
source