Group elements bug fix.