correct the creation of the activation graph