SECOND AMENDMENT TO WARRANT AGREEMENT