SECOND AMENDMENT TO THE SECURITIES PURCHASE AGREEMENT