scope fix

This should be uniq not DISTINCT