AMENDMENT NO. 4 TO MASTER NOTE PURCHASE AGREEMENT