AMENDMENT NO. 1 TO THE MASTER REPURCHASE AGREEMENT