fixed small bug in a psi-new-history patch