Fixed wrong support point index at start and end point.

This fixes three crashing tests on Windows.