Fix nearest neighbours changes