Fixes #5667: correct the compliance computation logic for aggregates

Ah, yes, it should be removed or not appears in build output. But that must be an other ticket