fix TRAITS issue with SortedBag