group reporting: fix bad values of min/max