fix  segmentation fault if point has no mateched ap