Fix grouping when retrieving config

Added groupby group to the list as well, otherwise in certain cases the returned result would be null.