AMENDMENT NO. 2 TO RIGHTS AGREEMENT