bugfixes, remove distance from search as it is now automatic