Fix uniqueness bug for objectives