fixed coloring bug for previous found nearest point