fixed bug failing to exclude repeating starting points from sign flips