Fixed bug with regards to subnet lookups.