Bug in constructing reducedGraphicalModel