The first lease covers until its expiry date, I assume 31 July 2015. Regardless of when you completed the second lease it will be 'valid' from the stated commencement date, 1 Aug 2015.
Therefore, it is the first lease that is applicable.
I hope this helps.
Do you have any queries or questions in respect of my answer? I am happy to assist further.
Please can I kindly request that you accept /positive rate my reply otherwise the website will not pay me for assisting you. Many thanks.