Fixing groups.js issue