fixed psi-new-history patch after upstream commit