Fixed an issue with perimeter comparison that was causing all comparisons to return false.