Fix global user group query