FIRST AMENDMENT TO AMENDED AND RESTATED NOTE PURCHASE AGREEMENT