Fixed recent regression causing a spike when avoid_crossing_perimeters was used on split objects