AMENDED AND RESTATEDAMENDMENT NO. 6 TO MASTER AGREEMENT TO LEASE