Fix error about scala's Set complexity