Fixes #5943: Fix compilation issue in group API V5