Fixing a problem with coliniar points. Really hope this is the last change.