Small change in src/factorgraph.cpp