fix #374

The number of traits was used instead of the number of aliases/precedences