Fix equations in PGM