fixed psi-new-history patch