Fixed bug with expiration of leases.