Fix sniff when traits are used in another trait