fix patch for psi