I would suggest that you log the points that you feed in to the method and analyse them in more detail. Yes, of course they may coincide. You could also log the distance between each consecutive point to ensure that the minimum length is respected. You could also skip points that are too close together.