AMENDMENT NO. 2 TO THE INVESTMENT AGREEMENT