fix near point analysis