Fix payment_deadline problem.