AMENDMENT NO. 6 TO SECURED LOAN AGREEMENT