Fixed bug 1698, avoid having the problem define f(x) to have 2 different values at the same point.
Changed paths: