Bug fixe when creating leases.