FOURTH AMENDMENT TO TERM LOAN AGREEMENT