Fix regression in Avoid Crossing Perimeters. #1531