Make leafsets unique