FIFTH AMENDMENT TO MASTER NOTE PURCHASE AGREEMENT