fix near by issue