Fixed bug preventing range lookups