fix apply patch for payment