Fix for equality checking during transect generation