FOURTH AMENDMENT TO LOAN AGREEMENT AND THIRD AMENDMENT TO SECURITY AGREEMENT