Intialized totalPotentials to None in parsing_hypergraph.recompute_marginals