Minor bug correction: fetching distances not working.