Fix for getting groups synchronously