fixed a bug in the solution output of the PFM implementation