fixed group storage to use correct comparator