THIRD AMENDMENT TO REPURCHASE AGREEMENT