fix locality search