My question involves landlord-tenant law in the State of: Texas

This takes place in a large Texas City. We signed two leases with our landlord. The first lease signed in Dec. of 2017 which started in Feb of 2018 and ran to Feb of 2019. We were unhappy at the apartment due to tenants not leashing large dogs (which violated city law and the tenant's lease but the landlord did not enforce any of the rules). We had a terminal family member and could not move out after the first lease. We signed another lease with the caveat that the dog situation would improve. We had two dog bites during the first year and an attack by another unleashed dog during the second year. After complaining to the landlord about the dog attack they agreed to break lease #2. We moved out in June of 2019 and someone else is in our old apartment. The landlord just sent us a bill for utilities which has many errors. We overpaid the rent. In trying to figure out what we owe we discovered the landlord referred to the wrong lease on the lease termination agreement. The lease they refer to was the first lease which expired February of 2019. We had the lease termination agreement reviewed by our attorney and neither our attorney nor we caught the error. Since the termination agreement refers to lease #1 which already expired what does this mean?