Fix symmetric solution detection.