AMENDMENT NO. 1 TO NOTE PURCHASE AND SECURITY AGREEMENT