Fix leases filtering