Fixed a bug with reconstructing the pv