AMENDMENT NO. 4 TO PREFERRED STOCK PURCHASE AGREEMENT