Improve getClosestAddressFromBuckets function
Fixed typo