fixed bug in a psi-new-history patch